package com.cloud.salon.common.base.constant;

/**
 * @Description 优惠类型
 * @Author wolf--LZH
 * @CreateDate 2019/5/17 0017 下午 4:02
 */
public class PreferentialConstant {

    private static final String[] TYPE = {
            "折扣优惠",
            "代金券"
    };

    /*
     * @Description 0--折扣优惠 1--代金券  2--会员卡支付
     * @Author wolf--LZH
     */
    public static final Integer DISCOUNT = 0;
    public static final Integer VOUCHER = 1;

    public static String getType(Integer type) {
        if(type == null || type < 0 || type >= TYPE.length)
            return "错误信息";
        return TYPE[type];
    }
}
